package ch.sfug.events{

	

	import ch.sfug.player.IPlaylist;
	import flash.events.Event;




	/**
	* events for playlist
	*/
	public class PlaylistEvent extends Event {
		//{ ATTRIBUTES
		
		public static const NEXT:String = "PlaylistEvent.NEXT";
		public static const PREV:String = "PlaylistEvent.PREV";
		public static const ENDLIST:String = "PlaylistEvent.ENDLIST";
		public static const GOTO:String = "PlaylistEvent.GOTO";
		public static const PLAYLIST_CHANGED:String = "PlaylistEvent.PLAYLIST_CHANGED";
		//[Event(name="PlaylistEvent.PLAYLIST_CHANGED",type="ch.sfug.events.PlaylistEvent")]
		private var _position:int;
		private var _playlist:IPlaylist;

		
		//}

		//{ GETTER-SETTER
		
		/**
		* current position of the playlist
		*/
		public function get position():int{ return this._position; }
 		/** @private */
		public function set position(newValue:int):void{
			this._position = newValue;
		}
		/**
		* the playlist
		*/
		public function get playlist():IPlaylist{ return this._playlist; }
 		/** @private */
		public function set playlist(newValue:IPlaylist):void{
			this._playlist = newValue;
		}
		//}


		//{ INIT
		public function PlaylistEvent(type:String,position:int,playlist:IPlaylist)
		{
			super(type);
			this._position = position;
			this._playlist = playlist;
		}

		//}

		//{ METHODS
		
		
		//}

		//{ PRIVATE METHODS
		//}



	}

}

